﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Mathmall.Administration.Migrations
{
    /// <inheritdoc />
    public partial class UseTableUsenvarchar : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Username",
                table: "User",
                type: "nvarchar(255)",
                nullable: false,
                comment: "用户名称",
                oldClrType: typeof(string),
                oldType: "varchar(255)",
                oldComment: "用户名称");

            migrationBuilder.AlterColumn<string>(
                name: "Description",
                table: "User",
                type: "nvarchar(255)",
                nullable: true,
                comment: "用户描述",
                oldClrType: typeof(string),
                oldType: "varchar(255)",
                oldNullable: true,
                oldComment: "用户描述");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Username",
                table: "User",
                type: "varchar(255)",
                nullable: false,
                comment: "用户名称",
                oldClrType: typeof(string),
                oldType: "nvarchar(255)",
                oldComment: "用户名称");

            migrationBuilder.AlterColumn<string>(
                name: "Description",
                table: "User",
                type: "varchar(255)",
                nullable: true,
                comment: "用户描述",
                oldClrType: typeof(string),
                oldType: "nvarchar(255)",
                oldNullable: true,
                oldComment: "用户描述");
        }
    }
}
